package com.triangulator;

import com.ece594bb.project.localization_and_reidentification.R;

import android.app.Activity;
import android.os.Bundle;
import android.content.Intent;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;

public class MainActivity extends Activity
{
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		
		Button b1 = (Button) findViewById(R.id.triang_btn);
		
		b1.setOnClickListener(new View.OnClickListener() {
			public void onClick(View arg0) {
				startActivity(new Intent(MainActivity.this, Triangulator.class));
			}
		});
		
		
		Button b2 = (Button) findViewById(R.id.reident_btn);
		
		b2.setOnClickListener(new View.OnClickListener() {
			public void onClick(View arg0) {
				startActivity(new Intent(MainActivity.this, Reidentificator.class));
			}
		});
		
		
		ImageButton b3 = (ImageButton) findViewById(R.id.helpbutton);
		
		b3.setOnClickListener(new View.OnClickListener() {
			public void onClick(View arg0) {
				startActivity(new Intent(MainActivity.this, Helper.class));
			}
		});
	}
}


